package SHGui;

import javax.swing.JPanel;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Component;
import javax.swing.JButton;
import javax.swing.JComboBox;

public class OptimizationGUI extends JPanel {
	public String arr[]= new String[]{"1","2","3"};
	public String arr1[]= new String[] {"1","2","3","4","5"};
	public JButton button_1;
	public JButton btnNewButton;

	
	public OptimizationGUI() {
		JLabel label = new JLabel("\u05D4\u05DB\u05E0\u05E1 \u05E7\u05D3\u05D9\u05DE\u05D5\u05EA \u05DC\u05DE\u05D5\u05E6\u05E8:");
		
		JLabel label_1 = new JLabel("\u05D4\u05DB\u05E0\u05E1 \u05E2\u05D3\u05D9\u05E4\u05D5\u05EA \u05DC\u05DE\u05D5\u05E6\u05E8:");
		
		button_1 = new JButton("\u05D1\u05D7\u05E8 \u05DE\u05D5\u05E6\u05E8");
		
		JComboBox comboBox = new JComboBox(arr);
		
		JComboBox comboBox_1 = new JComboBox(arr1);
		
		btnNewButton = new JButton("\u05E1\u05D9\u05D5\u05DD");
		btnNewButton.setHorizontalAlignment(SwingConstants.RIGHT);
		GroupLayout groupLayout = new GroupLayout(this);
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.TRAILING)
				.addGroup(groupLayout.createSequentialGroup()
					.addContainerGap(69, Short.MAX_VALUE)
					.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addComponent(comboBox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
								.addComponent(comboBox_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
							.addGap(40)
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addComponent(label, GroupLayout.PREFERRED_SIZE, 108, GroupLayout.PREFERRED_SIZE)
								.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 108, GroupLayout.PREFERRED_SIZE))
							.addContainerGap())
						.addGroup(groupLayout.createSequentialGroup()
							.addComponent(btnNewButton)
							.addGap(59)
							.addComponent(button_1, GroupLayout.PREFERRED_SIZE, 83, GroupLayout.PREFERRED_SIZE)
							.addGap(150))))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(55)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(label)
						.addComponent(comboBox, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(37)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(label_1)
						.addComponent(comboBox_1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(72)
					.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)
						.addComponent(button_1)
						.addComponent(btnNewButton))
					.addContainerGap(73, Short.MAX_VALUE))
		);
		setLayout(groupLayout);
	}
}
